<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看后台管理员信息表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看后台管理员信息表明细</h1></td></tr>
        <tr>
            <td>后台管理员ID</td>
            <td>
                   <span id="adminId"></span>
            </td>
        </tr>
        <tr>
            <td>登录名</td>
            <td>
                   <span id="loginName"></span>
            </td>
        </tr>
        <tr>
            <td>密码</td>
            <td>
                   <span id="password"></span>
            </td>
        </tr>
        <tr>
            <td>用户真实姓名</td>
            <td>
                   <span id="adminName"></span>
            </td>
        </tr>
        <tr>
            <td>证件号码</td>
            <td>
                   <span id="identityCardNo"></span>
            </td>
        </tr>
        <tr>
            <td>手机号</td>
            <td>
                   <span id="mobilePhone"></span>
            </td>
        </tr>
        <tr>
            <td>邮箱</td>
            <td>
                   <span id="adminEmail"></span>
            </td>
        </tr>
        <tr>
            <td>会员生日</td>
            <td>
                   <span id="birthday"></span>
            </td>
        </tr>
        <tr>
            <td>用户类型</td>
            <td>
                   <span id="type"></span>
            </td>
        </tr>
        <tr>
            <td>负责区域</td>
            <td>
                   <span id="responsible"></span>
            </td>
        </tr>
        <tr>
            <td>最后修改时间</td>
            <td>
                   <span id="modifiedTime"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/admin/findById.json",param,function(detail){
        $("#adminId").text(detail.adminId);
        $("#loginName").text(detail.loginName);
        $("#password").text(detail.password);
        $("#adminName").text(detail.adminName);
        $("#identityCardNo").text(detail.identityCardNo);
        $("#mobilePhone").text(detail.mobilePhone);
        $("#adminEmail").text(detail.adminEmail);
        $("#birthday").text(detail.birthday);
        $("#type").text(detail.type);
        $("#responsible").text(detail.responsible);
        $("#modifiedTime").text(detail.modifiedTime);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/admin/list.html";
    });
</script>

</body>
</html>